﻿using FB.Membership.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace FB.Security.FCDB
{

    // 模
    // modules
    public enum Module : int
    {
        [Description("业务管理")]
        ProcessInstance = 1,  
        [Description("报表管理")]
        ReportManagement,
    }
    #region 我的流程
    namespace ProcessInstance
    {
        public enum Menu : int
        {
            [Description("待办业务")]
            ReadyTasks = 100,
            [Description("业务查询")]
            ProcessQueryTransiting,
            [Description("结束业务")]
            ProcessQueryCompleted,
            [Description("所有业务")]
            ProcessQuery,
            [Description("业务申请")]
            WorkFormApply,
            [Description("业务草稿")]
            FormDraft,
            [Description("本人业务")]
            MyProcessInstance,
            [Description("流程管理")]
            ProcessInstanceManager,

            [Description("财务收款")]
            FinanceManager,

            [Description("综合室管理")]
            ComprehensiveManager,
            

        }
        #region ProcessInstanceMenu
        [SecurityFlag((int)Module.ProcessInstance, (int)Menu.ReadyTasks)]
        public enum ReadyTasks : long
        {
            [Description("查看")]
            View = 1,
            [Description("打印协议")]
            PrintAgreement = 2,
            [Description("删除协议")]
            DeleteAgreement = 4,
            [Description("打印保函")]
            PrintFall = 8,
            [Description("删除保函")]
            DeleteFall = 16

        }
        [SecurityFlag((int)Module.ProcessInstance, (int)Menu.ProcessInstanceManager)]
        public enum ProcessInstanceManager : long
        {
            [Description("查看")]
            View = 1
        }
        [SecurityFlag((int)Module.ProcessInstance, (int)Menu.ProcessQueryTransiting)]
        public enum ProcessQueryTransiting : long
        {
            [Description("查看")]
            View = 1
        }
        [SecurityFlag((int)Module.ProcessInstance, (int)Menu.ProcessQueryCompleted)]
        public enum ProcessQueryCompleted : long
        {
            [Description("查看")]
            View = 1
        }
        [SecurityFlag((int)Module.ProcessInstance, (int)Menu.ProcessQuery)]
        public enum ProcessQuery : long
        {
            [Description("查看")]
            View = 1
        }
        [SecurityFlag((int)Module.ProcessInstance, (int)Menu.WorkFormApply)]
        public enum WorkFormApply : long
        {
            [Description("查看")]
            View = 1
        }
        [SecurityFlag((int)Module.ProcessInstance, (int)Menu.FormDraft)]
        public enum FormDraft : long
        {
            [Description("查看")]
            View = 1
        }
        [SecurityFlag((int)Module.ProcessInstance, (int)Menu.MyProcessInstance)]
        public enum MyProcessInstance : long
        {
            [Description("查看")]
            View = 1
        }
        // 财务收款
        [SecurityFlag((int)Module.ProcessInstance, (int)Menu.FinanceManager)]
        public enum FinanceManager : long
        {
            [Description("查看")]
            View = 1
        }

        // 综合室管理
        [SecurityFlag((int)Module.ProcessInstance, (int)Menu.ComprehensiveManager)]
        public enum ComprehensiveManager : long
        {
            [Description("查看")]
            View = 1
        }
        #endregion

        
    }
    #endregion

    #region 报表管理
    namespace ReportManagement
    {
        public enum Menu : int
        {
            [Description("业务明细")]
            BusinessDetail = 100,
            [Description("报表权限设置")]
            PermissionsSettings = 1004,
            [Description("提成明细")]
            BusinessDeductDetailReport = 1005,
            [Description("提成汇总")]
            BusinessDeductReport = 1006,
        }
        [SecurityFlag((int)Module.ReportManagement, (int)Menu.BusinessDetail)]
        public enum BusinessDetail : long
        {
            [Description("查看")]
            View = 1
        }


        [SecurityFlag((int)Module.ReportManagement, (int)Menu.PermissionsSettings)]
        public enum PermissionsSettings : long
        {
            [Description("查看")]
            View = 1 
        }
        [SecurityFlag((int)Module.ReportManagement, (int)Menu.BusinessDeductDetailReport)]
        public enum BusinessDeductDetailReport : long
        {
            [Description("查看")]
            View = 1
        }
        [SecurityFlag((int)Module.ReportManagement, (int)Menu.BusinessDeductReport)]
        public enum BusinessDeductReport : long
        {
            [Description("查看")]
            View = 1
        }

    }
    #endregion

   


    
   
     
    

     

   

 


  

    
    
}
